12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>미수관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cmpylst>
- <item>
- <sel/>
- <cmpynm/>
- <clamfromdd/>
- <clamtodd/>
- <claminwon/>
- <clamdd/>
- <clamamt/>
- <lastpaydd/>
- <incomeamt/>
- <chngamt/>
- <restamt/>
- <discamt/>
- <uncoamt/>
- <cmpycd/>
- <cmpyno/>
- <condflag/>
- <clamseqno/>
- <clamstat/>
- </item>
- </cmpylst>
- <cmpydetllst>
- <item>
- <sel/>
- <pid/>
- <hngnm/>
- <hopedd/>
- <pkgnm/>
- <cmpyamt/>
- <incomeamt/>
- <chngamt/>
- <restamt/>
- <discamt/>
- <cmpycd/>
- <rsrvdd/>
- <rsrvno/>
- <condflag/>
- <clamseqno/>
- <healexamflag/>
- <orddd/>
- <clntempid/>
- <rrgstno/>
- <contamt/>
- <addexamamt/>
- <ownbamt/>
- </item>
- <incmlst>
- <sel/>
- <incomedd/>
- <cashcardflag/>
- <incomeamt/>
- <restamt/>
- <discamt/>
- <chngamt/>
- <incomestat/>
- <clamtrgtcd/>
- <remfact/>
- <bankid/>
- <lastupdtrid/>
- <lastupdtdt/>
- <incomeflag/>
- <clamseqno/>
- <incomeseqno/>
- <allotmm/>
- <aprvdd/>
- <aprvflag/>
- <aprvtm/>
- <aprvno/>
- <cardcmpycd/>
- <cardno/>
- <valiterm/>
- <vangb/>
- <keyinptflag/>
- </incmlst>
- </cmpydetllst>
- <prnt>
- <clamdetl>
- <item/>
- </clamdetl>
- <ownbill>
- <item/>
- </ownbill>
- </prnt>
- </main>
- <send>
- <srchinfo>
- <cmpycd/>
- <cmpynm/>
- <fromdd/>
- <todd/>
- <condflag>H</condflag>
- <clamend/>
- </srchinfo>
- <srchdetl>
- <cmpydata/>
- </srchdetl>
- <save>
- <clam/>
- <clamdetl/>
- <cnclinfo/>
- <card/>
- </save>
- <cardcashdata>
- <aprv>
- <depoAmt/>
- <cashcardflag>C</cashcardflag>
- <indinstflag/>
- <cardcashno/>
- <valiterm/>
- <allotmm/>
- <keyinptflag>S</keyinptflag>
- <qualcnfmflag>
- </qualcnfmflag>
- <swipedata/>
- </aprv>
- </cardcashdata>
- </send>
- <sendincm>
- <cashcardflag>C</cashcardflag>
- <clam/>
- <clamdetl/>
- <cardcash/>
- </sendincm>
- <init>
- <baseinfo>
- <initaddrinfo/>
- </baseinfo>
- <session/>
- </init>
- <tmp>
- <appvanif/>
- </tmp>
- <hidden>
- </hidden>
- </root>
- </instance>
- <submission id="TRAHA00001"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXPAC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp"/>
- <submission id="TRAHA02911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/cmpylst"/>
- <submission id="TRAHA02912" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetl" resultref="/root/main/cmpydetllst"/>
- <submission id="TXAHA02911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/hidden"/>
- <submission id="TXAHA02912" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendincm" resultref="/hidden"/>
- <submission id="TXAHA02913" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendincm" resultref="/hidden"/>
- <submission id="TXAHA02314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/hidden"/>
- <submission id="TRPAO00005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magm/magminfo" resultref="/root/magm/aprvinfo"/>
- <submission id="TRPAO00006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/rcptuser/rcptuserinfosend" resultref="/root/rcptuser/rcptuserinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitUnco();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /****************************************************************************************************************************************************************************************
- * 미수관리 화면 초기화
- ****************************************************************************************************************************************************************************************/
- function fInitUnco() {
- //공통코드
- zbcfGetCodeList(new Array("R0001","A0458"),
- new Array("/root/init/initlst/R0001list", "/root/init/initlst/A0458list"));
-
- // 일자
- var curDt = getCurrentDate();
- var startdate = curDt.substring(0, 4) + "0101";
- model.setValue(ipt_fromdate.attribute("ref") , startdate);
- model.setValue(ipt_todate.attribute("ref") , curDt);
- // model.setValue(ipt_fromdate.attribute("ref") , "20120101");
- // model.setValue(ipt_todate.attribute("ref") , "20130131");
- // model.setValue("/root/send/srchinfo/condflag", "C");
- healGetCodeList(new Array("R001"), new Array("/root/init/baseinfo/initaddrinfo"));
- model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
- model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
- model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
- model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
- model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
- model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
- model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
- model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
- model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
- model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
- model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
- model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
- model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
-
- // 초기화
- fGetUserInfosSampling();
-
- // 그리드 체크박스
- grd_cmpydetllst.fixedcellcheckbox(0 , 1) = true;
- model.refresh();
- }
-
- function fGetUserInfosSampling(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
-
- model.makeNode("/root/init/session/userid");
- model.makeNode("/root/init/session/usernm");
- model.makeNode("/root/init/session/posinstcd");
- model.makeNode("/root/init/session/posinstnm");
- model.makeNode("/root/init/session/posdeptcd");
- model.makeNode("/root/init/session/posdeptnm")
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
-
- model.setValue("/root/init/session/userid",userid);
- model.setValue("/root/init/session/usernm",usernm);
- model.setValue("/root/init/session/posinstcd",posinstcd);
- model.setValue("/root/init/session/posinstnm",posinstnm);
- model.setValue("/root/init/session/posdeptcd",posdeptcd);
- model.setValue("/root/init/session/posdeptnm",posdeptnm);
- model.refresh();
- }
-
- /***********************************************************************************************************************************************************
- * 그리드의 높이 조절
- ************************************************************************************************************************************************************/
- function fSetGrdSize(vStat,vLoc ){
- var gap = 30;
- var h_uGrd = parseInt(grd_cmpylst.attribute("height"));
- var h_dGrd = parseInt(switch1.attribute("height"));
- var top_uGrd = parseInt(grd_cmpylst.attribute("top"));
- var top_btn = parseInt(btn_ularge.attribute("top"));
- var h_btn = parseInt(btn_ularge.attribute("height"));
-
- if(vLoc == "U"){
- btn_usmall.visible = vStat;
- btn_ularge.visible = !vStat;
- btn_dsamll.visible = !vStat;
- btn_dlarge.visible = !vStat;
- btn_clam.visible = !vStat;
- btn_incm.visible = !vStat;
- switch1.visible = !vStat;
- grd_cmpydetllst.visible = !vStat;
- btn_detlexcel.visible = !vStat;
-
- if(vStat == true) {
- grd_cmpylst.attribute("height") = gap + h_uGrd + h_dGrd;
- }else {
- grd_cmpylst.attribute("height") = h_uGrd - gap - h_dGrd;
- }
- }else if(vLoc == "D"){
- btn_usmall.visible = !vStat;
- btn_ularge.visible = !vStat;
- btn_dsamll.visible = vStat;
- btn_dlarge.visible = !vStat;
- grd_cmpylst.visible = !vStat;
- btn_cmpyexcel.visible = !vStat;
-
- if(vStat == true) {
- btn_dlarge.attribute("top") = top_btn;
- btn_dsamll.attribute("top") = top_btn;
- btn_clam.attribute("top") = top_btn;
- btn_incm.attribute("top") = top_btn;
- btn_detlexcel.attribute("top") = top_btn;
-
- switch1.attribute("top") = top_uGrd;
- switch1.attribute("height") = gap + h_uGrd + h_dGrd;
- grd_cmpydetllst.attribute("height") = gap + h_uGrd + h_dGrd - 12;
- }else {
- btn_dlarge.attribute("top") = top_uGrd + h_uGrd + gap - 5 - h_btn;
- btn_dsamll.attribute("top") = top_uGrd + h_uGrd + gap - 5 - h_btn;
- btn_clam.attribute("top") = top_uGrd + h_uGrd + gap - 5 - h_btn;
- btn_incm.attribute("top") = top_uGrd + h_uGrd + gap - 5 - h_btn;
- btn_detlexcel.attribute("top") = top_uGrd + h_uGrd + gap - 5 - h_btn;
-
- switch1.attribute("top") = top_uGrd + h_uGrd + gap ;
- switch1.attribute("height") = h_dGrd - gap - h_uGrd;
- grd_cmpydetllst.attribute("height") = h_dGrd - gap - h_uGrd - 12;
- }
- }
- }
- /***********************************************************************************************************************************************************
- * 계약처의 상세 인원내역정보 조회
- ************************************************************************************************************************************************************/
- function fGetCmpyDetlList(){
- model.resetInstanceNode("/root/send/cardcashdata/aprv");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
- model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "C"); //R-카드, S-현금영수증, C-현금
- rdo_cashcardflag.dispatch("xforms-value-changed");
-
- model.removeNodeset("/root/main/cmpydetllst/item");
- model.removeNodeset("/root/main/cmpydetllst/incmlst");
-
- for(var i=1; i<grd_cmpylst.rows; i++){
- model.setValue("/root/main/cmpylst/item[" + i + "]/sel", "N");
- }
- grd_cmpylst.clearStatus();
- var chkRow = grd_cmpylst.row;
- grd_cmpylst.addStatus(chkRow, "insert");
- model.setValue("/root/main/cmpylst/item[" +chkRow + "]/sel", "Y");
- model.setValue("/root/send/srchdetl/cmpydata", getGridUpdateData(grd_cmpylst));
- if(submit("TRAHA02912")){
- grd_cmpylst.clearStatus();
- }
- fSetRcptSum(); //총계 및 입금대상금액 설정
- }
- /***********************************************************************************************************************************************************
- * 청구내역생성
- ************************************************************************************************************************************************************/
- function fCretClam(){
- grd_cmpylst.clearStatus();
- grd_cmpydetllst.clearStatus();
- for(var i = 1; i <= grd_cmpylst.rows; i++){
- var chk = grd_cmpylst.valueMatrix( i , grd_cmpylst.colRef("sel"));
- if(chk == "Y") {
- grd_cmpylst.addStatus(i , "insert");
- }
- }
-
- for(var j = 1; j < grd_cmpydetllst.rows; j++){
- var chk = grd_cmpydetllst.valueMatrix( j, grd_cmpydetllst.colRef("sel"));
- if(chk == "Y") {
- grd_cmpydetllst.addStatus(j , "insert");
- }
- }
-
- model.setValue("/root/send/save/clam" , getGridUpdateData(grd_cmpylst));
- model.setValue("/root/send/save/clamdetl" , getGridUpdateData(grd_cmpydetllst));
- submit("TXAHA02911");
- }
- /***********************************************************************************************************************************************************
- * 청구내역삭제
- ************************************************************************************************************************************************************/
- function fDelClam(){
- grd_cmpylst.clearStatus();
- grd_cmpydetllst.clearStatus();
- for(var i = 1; i <= grd_cmpylst.rows; i++){
- var chk = grd_cmpylst.valueMatrix( i , grd_cmpylst.colRef("sel"));
- if(chk == "Y") {
- grd_cmpylst.addStatus(i , "delete");
- }
- }
-
- model.setValue("/root/send/save/cnclinfo" , getGridUpdateData(grd_cmpylst));
- if(submit("TXAHA02314")){
- return true;
- }
- }
- /***********************************************************************************************************************************************************
- * 청구 수금액 저장
- ************************************************************************************************************************************************************/
- function fSaveClamAmt(vIdx){
- model.resetInstanceNode("/root/sendincm");
-
- var row = grd_cmpylst.row;
- var aprvFlag = "";
- grd_cmpydetllst.subtotal("clear", 0, 12);
-
- var limitAmt = model.getValue("/root/main/cmpylst/item[" + row + "]/clamamt");
- var exIncmAmt = model.getValue("/root/main/cmpylst/item[" + row + "]/incomeamt");
- var cmpycd = model.getValue("/root/main/cmpylst/item[" + row + "]/cmpycd");
- var cmpyno = model.getValue("/root/main/cmpylst/item[" + row + "]/cmpyno");
- var depoAmt = model.getValue("/root/send/cardcashdata/aprv/depoAmt");
- var cashcardflag = model.getValue("/root/send/cardcashdata/aprv/cashcardflag");
-
- if(limitAmt == "") limitAmt = 0;
- if(exIncmAmt == "") exIncmAmt = 0;
- if(depoAmt == "") depoAmt = 0;
-
- if(depoAmt <= 0){
- messageBox("입금액이 없습니다.", "E");
- return false;
- }
-
- //R-카드, S-현금영수증, C-현금
- if("R" == cashcardflag){
- if(fCardReceipt()){
- if(fSaveClam(cashcardflag)){
- return true;
- }
- }
- }else if("S" == cashcardflag){
- if(fCashReceipt()){
- if(fSaveClam(cashcardflag)){
- return true;
- }
- }
- }else if("C" == cashcardflag){
- if(depoAmt > 300000){
- if(messageBox("현금 30만원 이상 인 경우 현금영수증을 발행해야 됩니다.\n발행하지 않고 진행", "S001" ) != 6 ){
- return false;
- }else{
- if(fSaveClam(cashcardflag)){
- return true;
- }
- }
- }else{
- if(fSaveClam(cashcardflag)){
- return true;
- }
- }
- }
- }
-
- /*
- * 입금정보 저장
- */
- function fSaveClam(cashcardflag){
- grd_cmpylst.clearStatus();
- grd_cmpylst.addStatus(grd_cmpylst.row, "update");
- for(var j=1; j<grd_cmpydetllst.rows; j++){
- grd_cmpydetllst.addStatus(j, "update");
- }
-
- model.setValue("/root/sendincm/cashcardflag" , cashcardflag);
- model.setValue("/root/sendincm/clam" , getGridUpdateData(grd_cmpylst));
- model.setValue("/root/sendincm/clamdetl" , getGridUpdateData(grd_cmpydetllst));
- if(submit("TXAHA02912")){
- return true;
- }
- }
-
- /*
- * 카드 승인
- */
- function fCardReceipt(){
- var vangb = "01";
- var gPid = "3134314"; //기관미수 환자
- var keyinptflag = model.getValue("/root/send/cardcashdata/aprv/keyinptflag");
- var sdata10 = "";
- var cardcashno = model.getValue("/root/send/cardcashdata/aprv/cardcashno");
- var valiterm = model.getValue("/root/send/cardcashdata/aprv/valiterm");
- var allotmm = model.getValue("/root/send/cardcashdata/aprv/allotmm");
- var depoAmt = model.getValue("/root/send/cardcashdata/aprv/depoAmt");
-
- if(cardcashno == ""){
- messageBox("카드번호는 필수 입력항목입니다.", "E999", "");
- return false;
- }
- if(valiterm == ""){
- messageBox("유효기간은 필수 입력항목입니다.", "E999", "");
- return false;
- }
- if(allotmm == ""){
- messageBox("할부개월수는 필수 입력항목입니다.", "E999", "");
- return false;
- }
-
- if(keyinptflag == "S"){
- sdata10 = model.getValue("/root/send/cardcashdata/aprv/swipedata");
- }
-
- fAppCardVanData(vangb //data1 //vangb van사구분
- ,"11" //data2 //ordergb 거래구분
- ,getCurrentDate() //data3 //mdate 회계일자
- ,gPid //data4 //pano 등록번호
- ,"H" //data5 //iogb 입외구분
- ,"" //data6 //deptcode 진료과코드
- ,"" //data7 //diagdate 진료일자
- ,model.getValue("/root/init/session/userid") //data8 //clientid 수납자
- ,keyinptflag //data9 //entrymode 입력구분
- ,sdata10 //data10 //track2data 트랙data
- ,cardcashno //data11 //cardnumber 카드번호
- ,valiterm //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
- ,allotmm //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
- ,depoAmt //data14 //netamt 금액
- ,"" //data15 //oldappdate 원거래승인일자(취소시)
- ,"" //data16 //oldapptime 원거래승인시간(취소시)
- ,"" //data17 //oldappno 원거래승인번호(취소시)
- );
-
- if(model.getValue("/root/tmp/appvanif/replystat") != "0000"){
- messageBox("카드승인실패 => "+ model.getValue("/root/tmp/appvanif/cardname"), "E999","");
- return false;
- }else{
- copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
- model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
- model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
- model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
- model.makeValue("/root/sendincm/cardcash/valiterm" , valiterm);
- model.makeValue("/root/sendincm/cardcash/allotmm" , allotmm);
- if(keyinptflag == "S"){
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
- }else{
- model.makeValue("/root/sendincm/cardcash/cardcashno" , cardcashno);
- }
-
- //전자서명 처리
- var parm = gPid + "▦" + //PID
- depoAmt + "▦" + //수납대상금액
- "12" + "▦" + //승인구분
- model.getValue("/root/tmp/appvanif/approvaldate") + "▦" + //승인일자
- model.getValue("/root/tmp/appvanif/approvaltime") + "▦" + //승인시간
- model.getValue("/root/tmp/appvanif/approvalno") + "▦" + //승인번호
- model.getValue("/root/hidden1/session/posinstcd") + "▦" //기관코드
- ;
- setParameter("SPPAO02101_PARM", parm);
- if(model.getValue("/root/tmp/h_passyn/passyn") != "Y"){
- modal("../../../pam/pamcomnweb/xrw/SPPAO02101", "1","400", "400", "SPPAO02101", "", "");
- }
- return true;
- }
- }
-
- function fAfterChangeCardNo(){
- if ((ipt_cardno.currentText).length >16) {
- //16자리보다 크면, "="이 있으면, swipe
- if((ipt_cardno.currentText).indexOf("=") > 0){
- var vSwipeData = "";
- var vCardno_array = "";
- var vCardno = "";
-
- vSwipeData = ipt_cardno.currentText;
- //swipe 시 첫글자에 ?
- if ( vSwipeData.indexOf("?") >= 0 ) {
- vSwipeData = (vSwipeData).substr(1,37);
- }
- if ( vSwipeData.indexOf("/") >= 0 ) {
- vSwipeData = (vSwipeData).substr(1,37);
- }
-
- model.setValue("/root/send/cardcashdata/aprv/swipedata", vSwipeData);
- vCardno_array = vSwipeData.split("=");
- vCardno = vCardno_array[0];
-
- //swipe 시 첫글자에 ?
- if ( vCardno.indexOf("?") >= 0 ) {
- vCardno = (vCardno).substr(1,16);
- }
- if ( vCardno.indexOf("/") >= 0 ) {
- vCardno = (vCardno).substr(1,16);
- }
-
- //유효일자
- var vValiterm = (vCardno_array[1]).substr(0,4);
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" , vCardno);
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
- model.setValue("/root/send/cardcashdata/aprv/valiterm" , vValiterm);
- model.setValue("/root/send/cardcashdata/aprv/allotmm" , "00");
- model.refresh();
- }
- }else if((ipt_cardno.currentText).length == 16){
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" , ipt_cardno.currentText);
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "K");
- model.setValue("/root/send/cardcashdata/aprv/allotmm" , "00");
- model.refresh();
- }
- }
-
- /*
- * 현금영수증 승인
- */
- function fCashReceipt(){
- var vangb = "01";
- var gPid = "3134314"; //기관미수 환자
- var keyinptflag = model.getValue("/root/send/cardcashdata/aprv/keyinptflag");
- var sdata10 = "";
- var cardcashno = model.getValue("/root/send/cardcashdata/aprv/cardcashno");
- var valiterm = model.getValue("/root/send/cardcashdata/aprv/valiterm");
- var allotmm = model.getValue("/root/send/cardcashdata/aprv/allotmm");
- var depoAmt = model.getValue("/root/send/cardcashdata/aprv/depoAmt");
- var indinstflag = model.getValue("/root/send/cardcashdata/aprv/indinstflag");
- var qualcnfmflag = model.getValue("/root/send/cardcashdata/aprv/qualcnfmflag");
-
- if(indinstflag == ""){
- messageBox("개인/법인구분은 필수 선택항목입니다.", "E999", "");
- return false;
- }
- if(cardcashno == ""){
- messageBox("자격확인번호는 필수 입력항목입니다.", "E999", "");
- return false;
- }
- if(qualcnfmflag == ""){
- messageBox("자격확인구분은 필수 선택항목입니다.", "E999", "");
- return false;
- }
-
- if(keyinptflag == "S"){
- sdata10 = model.getValue("/root/send/cardcashdata/aprv/swipedata");
- }
-
- fAppCardVanData(vangb //data1 //vangb van사구분
- ,"41" //data2 //ordergb 거래구분
- ,getCurrentDate() //data3 //mdate 회계일자
- ,gPid //data4 //pano 등록번호
- ,"H" //data5 //iogb 입외구분
- ,"" //data6 //deptcode 진료과코드
- ,"" //data7 //diagdate 진료일자
- ,model.getValue("/root/hidden1/session/userid") //data8 //clientid 수납자
- ,keyinptflag //data9 //entrymode 입력구분
- ,sdata10 //data10 //track2data 트랙data
- ,cardcashno //data11 //cardnumber 카드번호
- ,qualcnfmflag //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
- ,indinstflag //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
- ,depoAmt //data14 //netamt 금액
- ,"" //data15 //oldappdate 원거래승인일자(취소시)
- ,"" //data16 //oldapptime 원거래승인시간(취소시)
- ,"" //data17 //oldappno 원거래승인번호(취소시)
- );
-
- if (model.getValue("/root/tmp/appvanif/replystat") != "0000" ) {
- messageBox("현금영수증승인실패 => "+ model.getValue("/root/send/updatedata/bogj/bogj_cardno") ,"E999","");
- return false;
- }else{
- copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
- model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
- model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
- model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
- model.makeValue("/root/sendincm/cardcash/valiterm" , qualcnfmflag);
- model.makeValue("/root/sendincm/cardcash/allotmm" , indinstflag);
- if(keyinptflag == "S"){
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
- }else{
- model.makeValue("/root/sendincm/cardcash/cardcashno" , cardcashno);
- }
- return true;
- }
- }
-
- function fAfterChangeCashNo(){
- model.setValue("/root/send/cardcashdata/aprv/cardcashno", ipt_cardno.currentText);
- var cardno = model.getValue("/root/send/cardcashdata/aprv/cardcashno");
- if((cardno).length > 18){
- //16자리보다 크면, "="이 있으면, swipe
- if((cardno).indexOf("=") > 0 ){
- var vSwipeData = "";
- var vCardno_array = "";
- var vCardno = "";
-
- vSwipeData = cardno;
- //swipe 시 첫글자에 ?
- if(vSwipeData.indexOf("?") >= 0){
- vSwipeData = (vSwipeData).substr(1,37);
- }
- if(vSwipeData.indexOf("/") >= 0){
- vSwipeData = (vSwipeData).substr(1,37);
- }
- vSwipeData = vSwipeData.getRightPad(40, " ");
- model.setValue("/root/send/cardcashdata/aprv/swipedata" , vSwipeData);
-
- vCardno_array = vSwipeData.split("=");
- vCardno = vCardno_array[0];
-
- //swipe 시 첫글자에 ?
- if(vCardno.indexOf("?") >= 0){
- vCardno = (vCardno).substr(1,16);
- }
-
- //유효일자
- var vValiterm = (vCardno_array[1]).substr(0, 4);
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" , vCardno);
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "3"); //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- model.setValue("/root/send/cardcashdata/aprv/allotmm" , model.getValue("/root/send/cardcashdata/aprv/indinstflag"));
- model.refresh();
- }
- }else if ((cardno).length == 16 || (cardno).length == 15 || (cardno).length == 18){
- var vSwipeData = "";
- vSwipeData = cardno+"=";
- vSwipeData = vSwipeData.getRightPad(40, " ");
-
- model.setValue("/root/send/cardcashdata/aprv/swipedata" , vSwipeData);
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "3"); //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- model.refresh();
- }else{
- var vSwipeData = "";
- vSwipeData = cardno+"=";
- vSwipeData = vSwipeData.getRightPad(40, " ");
-
- model.setValue("/root/send/cardcashdata/aprv/swipedata" , vSwipeData);
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "K");
-
- //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- //길이가 13자리이면,주민번호
- if((cardno).length == 13){
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "1"); //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- }else{
- //앞 3자리 010,011,016,017,018,019 이면 전화
- if(cardno.substr(0,3) == "010" ||
- cardno.substr(0,3) == "011" ||
- cardno.substr(0,3) == "016" ||
- cardno.substr(0,3) == "017" ||
- cardno.substr(0,4) == "0130" ||
- cardno.substr(0,3) == "018" ||
- cardno.substr(0,3) == "019"
- ){
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "2"); //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- }else{
- //16자리 길이 미만일 때 13자리 주민번호 제외 후 핸드폰 앞자리 체크 나머지는 사업장
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "4"); //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- }
- }
- model.refresh();
- }
- }
-
- /*
- * 총계 및 입금대상금액 설정
- */
- function fSetRcptSum(){
- //그리드 merge 및 합계 초기화
- grd_cmpydetllst.subtotalPosition = "below";
- grd_cmpydetllst.multiTotals = true;
- grd_cmpydetllst.subtotal("clear", 0, 12);
- for(var i=0; i<grd_cmpydetllst.cols; i++){
- //소계 및 합계
- if((i >= grd_cmpydetllst.colRef("contamt") && i <= grd_cmpydetllst.colRef("discamt"))){
- grd_cmpydetllst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_cmpydetllst.colRef("sel") , "총계" );
- }
- }
-
- var exIncmAmt = model.getValue("/root/main/cmpylst/item[" + grd_cmpylst.row + "]/incomeamt");
- var depoAmt = 0;
- var totIncmAmt = 0;
- totIncmAmt = parseInt(totIncmAmt) +
- parseInt(model.getXPathValue("sum(/root/main/cmpydetllst/item/incomeamt)")) +
- parseInt(model.getXPathValue("sum(/root/main/cmpydetllst/item/ownincomeamt)"));
- depoAmt = totIncmAmt - exIncmAmt;
- model.setValue("/root/send/cardcashdata/aprv/depoAmt", depoAmt);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <button id="btn_dsamll" class="icon_bottom" style="left:1169px; top:263px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(false,"D");
- ]]>
- </script>
- </button>
- <button id="btn_usmall" class="icon_top" visibility="hidden" style="left:1169px; top:67px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(false,"U");
- ]]>
- </script>
- </button>
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:22px; width:1194px; height:38px; "/>
- <line id="line8" class="line_4" style="x1:1110px; y1:25px; x2:1110px; y2:50px; "/>
- <button id="btn_selcmpy" class="icon_search" style="left:190px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHA01500", "09" , "nm", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"), opt_cmpynm.attribute("ref"));
- ipt_cmpycd.refresh();
- opt_cmpynm.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_cmpynm" ref="/root/send/srchinfo/cmpynm" class="output_fix" style="left:210px; top:28px; width:150px; height:19px; "/>
- <button id="btn_srchtrgtman" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/cardcashdata/aprv");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
- model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "C"); //R-카드, S-현금영수증, C-현금
- rdo_cashcardflag.dispatch("xforms-value-changed");
-
- model.removeNodeset("/root/main/cmpydetllst/item");
- model.removeNodeset("/root/main/cmpydetllst/incmlst");
-
- if(model.getValue("/root/send/srchinfo/condflag") == "H"){
- btn_examseqprnt.disabled = true;
- btn_prntcustspec.disabled = true;
- btn_prntpsnspec.disabled = true;
- btn_rsrvprnt.disabled = false;
- btn_delclam.disabled = true;
- }else if(model.getValue("/root/send/srchinfo/condflag") == "C" || model.getValue("/root/send/srchinfo/condflag") == "I" ){
- btn_examseqprnt.disabled = false;
- btn_prntcustspec.disabled = false;
- btn_prntpsnspec.disabled = false;
- btn_rsrvprnt.disabled = true;
- btn_delclam.disabled = false;
- }
- submit("TRAHA02911");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption42" class="search_name" style="left:10px; top:29px; width:99px; height:17px; ">사업체 :</caption>
- <input id="ipt_cmpycd" ref="/root/send/srchinfo/cmpycd" class="input_search" style="left:104px; top:29px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_selcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:385px; top:30px; width:100px; height:17px; ">시작일자 :</caption>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">건강검진 단체미수관리</caption>
- </group>
- <caption id="caption3" class="search_name" style="left:755px; top:30px; width:117px; height:17px; ">조회구분 :</caption>
- <input id="ipt_fromdate" ref="/root/send/srchinfo/fromdd" class="input_s_essential" inputtype="date" style="left:480px; top:30px; width:115px; height:19px; "/>
- <input id="ipt_todate" ref="/root/send/srchinfo/todd" class="input_s_essential" inputtype="date" style="left:625px; top:30px; width:115px; height:19px; "/>
- <group id="group1" style="left:0px; top:734px; width:1195px; height:27px; ">
- <button id="btn_prntpsnspec" class="btn6_letter8" visibility="hidden" style="left:125px; top:5px; width:128px; height:22px; ">
- <caption>개인별영수증출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="btn_prntcustspec" class="btn6_letter7" style="left:5px; top:5px; width:116px; height:22px; ">
- <caption>청구내역서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPAHA02305","XMLSTR");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" style="left:811px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/cardcashdata/aprv");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
- model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "C"); //R-카드, S-현금영수증, C-현금
- rdo_cashcardflag.dispatch("xforms-value-changed");
-
- model.removeNodeset("/root/main/cmpylst/item");
- model.removeNodeset("/root/main/cmpydetllst/item");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_examseqprnt" class="btn4_letter5" style="left:883px; top:3px; width:92px; height:22px; ">
- <caption>수금액저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- if(fSaveClamAmt()){
- btn_srchtrgtman.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_rsrvprnt" class="btn4_letter6" style="left:979px; top:3px; width:104px; height:22px; ">
- <caption>청구내역생성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- fCretClam();
- btn_srchtrgtman.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_delclam" class="btn4_letter6" style="left:1087px; top:3px; width:104px; height:22px; ">
- <caption>청구내역삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- var srcCardCashFlag = "";
- var cardamt = 0;
- var cashamt = 0;
-
- if(grd_incm.rows > 1){
- messageBox("입금내역이 존재하는 청구내역은 삭제", "E001");
- return;
- }
-
- for(var i=0; i<=grd_incm.rows; i++){
- srcCardCashFlag = grd_incm.valueMatrix(i, grd_incm.colRef("cashcardflag"));
- if(srcCardCashFlag == "R"){
- cardamt = cardamt + parseInt(grd_incm.valueMatrix(i , grd_incm.colRef("incomeamt")));
- }else if(srcCardCashFlag == "S"){
- cashamt = cashamt + parseInt(grd_incm.valueMatrix(i , grd_incm.colRef("incomeamt")));
- }
- }
- if(cardamt != 0){
- messageBox("카드 승인취소 후 청구내역 삭제", "C003");
- return;
- }
- if(cashamt != 0){
- messageBox("현금영수증 승인취소 후 청구내역 삭제", "C003");
- return;
- }
-
- if(fDelClam()){
- btn_srchtrgtman.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- <select1 id="combo1" ref="/root/send/srchinfo/condflag" class="combo_search" appearance="minimal" style="left:850px; top:30px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>건진일</label>
- <value>H</value>
- </item>
- <item>
- <label>청구일</label>
- <value>C</value>
- </item>
- <item>
- <label>입금일</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption93" class="search_n_b" style="left:603px; top:30px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <datagrid id="grd_cmpylst" nodeset="/root/main/cmpylst/item" caption="선택^단체명^실시시작일^실시종료일^청구인원^청구일^청구금액^최종입급일^입금액^삭감액^절사액^할인액^미수금액^cmpycd^condflag^clamseqno^clamstat^cmpyamt^ownincomeamt^condflag" colsep="^" colwidth="30, 150, 80, 80, 70, 80, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:1195px; height:169px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="cmpynm"/>
- <col ref="clamfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="claminwon" format="(-,+)#,###" style="text-align:center; "/>
- <col ref="clamdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="lastpaydd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="incomeamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="chngamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="restamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cmpycd" visibility="hidden"/>
- <col ref="cmpyno" visibility="hidden"/>
- <col ref="condflag" visibility="hidden"/>
- <col ref="clamseqno" visibility="hidden"/>
- <col ref="clamstat" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_cmpylst.isCell(event.target) && grd_cmpylst.mouseRow >= grd_cmpylst.fixedrows){
- fGetCmpyDetlList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cmpylst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="cam_clam" class="tit_2" style="left:5px; top:72px; width:108px; height:13px; ">계약처내역</caption>
- <button id="btn_dlarge" class="icon_top" style="left:1169px; top:262px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(true,"D");
- ]]>
- </script>
- </button>
- <button id="btn_ularge" class="icon_bottom" style="left:1169px; top:67px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetGrdSize(true,"U");
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:287px; width:1195px; height:363px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <datagrid id="grd_cmpydetllst" nodeset="/root/main/cmpydetllst/item" caption="^등록번호^성명^건진일^패키지명^단체금액^단체입금액^삭감액^절사액^할인액^cmpycd^rsrvdd^rsrvno^condflag^clamseqno^healexamflag^orddd^clntempid^rrgstno^contamt^addexamamt^ownbamt" colsep="^" colwidth="45, 100, 100, 100, 250, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:27px; width:1190px; height:333px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pkgnm"/>
- <col ref="cmpyamt" type="output" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="incomeamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="chngamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="restamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="discamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cmpycd" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="condflag" visibility="hidden"/>
- <col ref="clamseqno" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="clntempid" visibility="hidden"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="contamt" visibility="hidden"/>
- <col ref="addexamamt" visibility="hidden"/>
- <col ref="ownbamt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //H-건진일, C-청구일, I-입금일
- var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
- if(condflag == "H"){
- return;
- }
-
- var chk = "";
- if(grd_cmpydetllst.col == grd_cmpydetllst.colRef("sel")){
- chk = grd_cmpydetllst.valueMatrix(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/cmpyamt"));
- }else if(chk == "N"){
- model.setValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/incomeamt", 0);
- }
- }
- fSetRcptSum();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
- if(condflag == "H"){
- return;
- }
-
- var chk = "";
- if(grd_cmpydetllst.row == 0 && grd_cmpydetllst. fixedcellischeck(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel"))){
- for(var i=1; i<grd_cmpydetllst.rows; i++){
- chk = grd_cmpydetllst.valueMatrix(i, grd_cmpydetllst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + i + "]/cmpyamt"));
- }else if(chk == "N"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", 0);
- }
- }
- fSetRcptSum(); //총계 및 입금대상금액 설정
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
- if(condflag == "H"){
- return;
- }
-
- var chk = "";
- if(grd_cmpydetllst.row == 0 && grd_cmpydetllst. fixedcellischeck(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel")) == false){
- for(var i=1; i<grd_cmpydetllst.rows; i++){
- chk = grd_cmpydetllst.valueMatrix(i, grd_cmpydetllst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + i + "]/cmpyamt"));
- }else if(chk == "N"){
- model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", 0);
- }
- }
- fSetRcptSum(); //총계 및 입금대상금액 설정
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbeforesort">
- <![CDATA[
- grd_cmpydetllst.subtotal("clear", 0, 12)
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- fSetRcptSum();
- grd_cmpydetllst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:5px; top:5px; width:108px; height:15px; ">청구내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:1190px; y2:22px; "/>
- </case>
- <case id="case2">
- <datagrid id="grd_incm" nodeset="/root/main/cmpydetllst/incmlst" caption="선택^입금일^현금/카드^입금액^삭감액^절사액^할인액^입금상태^청구처코드^비고사항^은행코드^입력자^입력일^입금구분^청구번호^입금번호^할부개월^승인일자^승인구분^승인시간^승인번호^카드회사^카드번호^유효일자^Van사^입력구분" colsep="^" colwidth="40, 90, 100, 100, 100, 100, 100, 100, 100, 100, 84, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:27px; width:1190px; height:333px; ">
- <col checkvalue="Y,N" ref="sel" type="radio"/>
- <col ref="incomedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="cashcardflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>카드</label>
- <value>R</value>
- </item>
- <item>
- <label>현금영수증</label>
- <value>S</value>
- </item>
- <item>
- <label>현금</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="incomeamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="chngamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="restamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="incomestat" visibility="hidden" style="text-align:center; "/>
- <col ref="clamtrgtcd" visibility="hidden" style="text-align:center; "/>
- <col ref="remfact" style="text-align:right; "/>
- <col ref="bankid" visibility="hidden" style="text-align:right; "/>
- <col ref="lastupdtrid" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="incomeflag" visibility="hidden"/>
- <col ref="clamseqno" visibility="hidden"/>
- <col ref="incomeseqno" visibility="hidden"/>
- <col ref="allotmm" visibility="hidden"/>
- <col ref="aprvdd" visibility="hidden"/>
- <col ref="aprvflag" visibility="hidden"/>
- <col ref="aprvtm" visibility="hidden"/>
- <col ref="aprvno" visibility="hidden"/>
- <col ref="cardcmpycd" visibility="hidden"/>
- <col ref="cardcashno" visibility="hidden"/>
- <col ref="valiterm" visibility="hidden"/>
- <col ref="vangb" visibility="hidden"/>
- <col ref="keyinptflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_incm.isCell(event.target) && grd_incm.mouseRow >= grd_incm.fixedrows){
- for(var i=1; i<grd_incm.rows; i++){
- model.setValue("/root/main/cmpydetllst/incmlst[" + i + "]/sel", "N");
- }
- model.setValue("/root/main/cmpydetllst/incmlst[" + grd_incm.row + "]/sel", "Y");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">입금내역</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:22px; x2:1190px; y2:22px; "/>
- <button id="button2" class="btn5_letter4" style="left:1126px; top:3px; width:64px; height:19px; ">
- <caption>승인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/sendincm");
-
- var idx = grd_incm.row;
- var cashcardflag = grd_incm.valueMatrix(idx , grd_incm.colRef("cashcardflag"));
- var vangb = grd_incm.valueMatrix(idx , grd_incm.colRef("vangb"));
- var gPid = "3134314"; //기관미수 환자
- var keyinptflag = grd_incm.valueMatrix(idx , grd_incm.colRef("keyinptflag"));
- var sdata10 = "";
- var sdata11 = "";
- var cardcashno = grd_incm.valueMatrix(idx , grd_incm.colRef("cardcashno"));
- var valiterm = grd_incm.valueMatrix(idx , grd_incm.colRef("valiterm"));
- var allotmm = grd_incm.valueMatrix(idx , grd_incm.colRef("allotmm"));
- var aprvflag = grd_incm.valueMatrix(idx , grd_incm.colRef("aprvflag"));
- var depoAmt = grd_incm.valueMatrix(idx , grd_incm.colRef("incomeamt"));
-
- //R-카드, S-현금영수증, C-현금
- if("R" == cashcardflag){
- //승인 취소 내역 존재 체크
- if(aprvflag == "11" || aprvflag == "12"){
- if(keyinptflag == "S"){
- sdata10 = cardcashno;
- sdata11 = cardcashno.split('=');
- sdata11 = sdata11[0];
- }else{
- sdata10 = "";
- sdata11 = cardcashno;
- }
- fAppCardVanData(vangb //data1 //vangb van사구분
- ,"21" //data2 //ordergb 거래구분
- ,getCurrentDate() //data3 //mdate 회계일자
- ,gPid //data4 //pano 등록번호
- ,"H" //data5 //iogb 입외구분
- ,"" //data6 //deptcode 진료과코드
- ,"" //data7 //diagdate 진료일자
- ,model.getValue("/root/init/session/userid") //data8 //clientid 수납자
- ,keyinptflag //data9 //entrymode 입력구분
- ,sdata10 //data10 //track2data 트랙data
- ,sdata11 //data11 //cardnumber 카드번호
- ,valiterm //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
- ,allotmm //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
- ,depoAmt //data14 //netamt 금액
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvdd")) //data15 //oldappdate 원거래승인일자(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvtm")) //data16 //oldapptime 원거래승인시간(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvno")) //data17 //oldappno 원거래승인번호(취소시)
- );
-
- if(model.getValue("/root/tmp/appvanif/replystat") != "0000" ){
- messageBox("카드승인취소실패 => "+ model.getValue("/root/tmp/appvanif/cardname") ,"E999","");
- return;
- }else{
- copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
- model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
- model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
- model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
- model.makeValue("/root/sendincm/cardcash/valiterm" , valiterm);
- model.makeValue("/root/sendincm/cardcash/allotmm" , allotmm);
- if(keyinptflag == "S"){
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
- }else{
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata11);
- }
-
- //전자서명 처리
- var parm = gPid + "▦" + //PID
- grd_incm.valueMatrix(idx , grd_incm.colRef("incomeamt")) + "▦" + //수납대상금액
- "22" + "▦" + //승인구분
- model.getValue("/root/tmp/appvanif/approvaldate") + "▦" + //승인일자
- model.getValue("/root/tmp/appvanif/approvaltime") + "▦" + //승인시간
- model.getValue("/root/tmp/appvanif/approvalno") + "▦" + //승인번호
- model.getValue("/root/init/session/posinstcd") + "▦"; //기관코드
- setParameter("SPPAO02101_PARM", parm);
- modal("../../../pam/pamcomnweb/xrw/SPPAO02101", "1","400", "400", "SPPAO02101", "", "");
- }
- }else{
- messageBox("선택된 입금내역은 이미 카드 취소가 완료된 내역", "I009");
- return;
- }
- }else if("S" == cashcardflag){
- //승인 취소 내역 존재 체크
- if(aprvflag == "41" || aprvflag == "42"){
- if(keyinptflag == "S"){
- sdata10 = cardcashno;
- sdata11 = cardcashno.split('=');
- sdata11 = sdata11[0];
- }else{
- var sdata10 = "";
- var sdata11 = cardcashno;
- }
-
- fAppCardVanData(vangb //data1 //vangb van사구분
- ,"51" //data2 //ordergb 거래구분
- ,getCurrentDate() //data3 //mdate 회계일자
- ,gPid //data4 //pano 등록번호
- ,"H" //data5 //iogb 입외구분
- ,"" //data6 //deptcode 진료과코드
- ,"" //data7 //diagdate 진료일자
- ,model.getValue("/root/init/session/userid") //data8 //clientid 수납자
- ,keyinptflag //data9 //entrymode 입력구분
- ,sdata10 //data10 //track2data 트랙data
- ,sdata11 //data11 //qualcnfmno 자격확인번호
- ,valiterm //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
- ,allotmm //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
- ,depoAmt //data14 //netamt 금액
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvdd")) //data15 //oldappdate 원거래승인일자(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvtm")) //data16 //oldapptime 원거래승인시간(취소시)
- ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvno")) //data17 //oldappno 원거래승인번호(취소시)
- );
- if (model.getValue("/root/tmp/appvanif/replystat") != "0000" ) {
- messageBox("현금영수증승인실패 => "+ model.getValue("/root/send/updatedata/bogj/bogj_cardno") ,"E999","");
- return;
- }else{
- copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
- model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
- model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
- model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
- model.makeValue("/root/sendincm/cardcash/valiterm" , valiterm);
- model.makeValue("/root/sendincm/cardcash/allotmm" , allotmm);
- if(keyinptflag == "S"){
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
- }else{
- model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata11);
- }
- }
- }else{
- messageBox("선택된 입금내역은 이미 현금영수증 취소가 완료된 내역", "I009");
- return;
- }
- }else if("C" == cashcardflag){
- return;
- }
-
- grd_cmpylst.clearStatus();
- grd_cmpylst.addStatus(grd_cmpylst.row, "update");
- model.makeValue("/root/sendincm/clam", getGridUpdateData(grd_cmpylst));
- model.setValue("/root/sendincm/cashcardflag", cashcardflag);
- if(submit("TXAHA02913")){
- btn_srchtrgtman.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_clam" class="btn_sw" group="sub_tab" selected="true" style="left:0px; top:266px; width:70px; height:22px; ">
- <caption>청구내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- // 선택된 메인 스위치의 인덱스 정보를 가져온다.
- ]]>
- </script>
- </button>
- <button id="btn_incm" class="btn_sw" group="sub_tab" style="left:70px; top:266px; width:70px; height:22px; ">
- <caption>입금내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- // 선택된 메인 스위치의 인덱스 정보를 가져온다.
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:1098px; top:67px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_cmpylst.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/send/srchinfo/clamend" overflow="visible" appearance="full" style="left:975px; top:30px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입금완료건 포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button5" class="btn2_letter4" style="left:1098px; top:262px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_cmpydetllst.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <group id="group5" style="left:0px; top:655px; width:1195px; height:80px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <caption id="caption10" class="tit_2" style="left:5px; top:10px; width:162px; height:14px; ">입금정보</caption>
- <output id="output3" ref="/root/send/cardcashdata/aprv/depoAmt" class="output_fix" format="(-,+)#,###" appearance="output" style="left:88px; top:32px; width:122px; height:19px; text-align:right; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:53px; x2:1194px; y2:53px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:30px; width:85px; height:23px; vertical-align:middle; ">입금대상금액</caption>
- <caption id="caption15" class="cell_1" style="left:215px; top:31px; width:60px; height:23px; vertical-align:middle; ">수납방법</caption>
- <caption id="caption16" class="cell_1" style="left:695px; top:30px; width:89px; height:23px; vertical-align:middle; ">카드/현금 번호</caption>
- <caption id="caption17" class="cell_1" style="left:455px; top:30px; width:65px; height:23px; vertical-align:middle; ">개인/법인</caption>
- <caption id="caption18" class="cell_1" style="left:920px; top:30px; width:90px; height:23px; vertical-align:middle; ">유효기간/힐부</caption>
- <caption id="caption20" style="left:1067px; top:32px; width:51px; height:20px; ">(YYMM)</caption>
- <caption id="caption21" style="left:1160px; top:32px; width:31px; height:20px; ">(NN)</caption>
- <input id="ipt_cardno" ref="/root/send/cardcashdata/aprv/cardcashno" navindex="10" style="left:788px; top:31px; width:127px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- //R-카드, S-현금영수증, C-현금
- if(rdo_cashcardflag.value == "R"){
- fAfterChangeCardNo();
- }else if(rdo_cashcardflag.value == "S"){
- fAfterChangeCashNo();
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_cashcardflag" ref="/root/send/cardcashdata/aprv/cashcardflag" appearance="full" cols="3" overflow="visible" style="left:280px; top:34px; width:172px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>카드</label>
- <value>R</value>
- </item>
- <item>
- <label>현금영수증</label>
- <value>S</value>
- </item>
- <item>
- <label>현금</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //R-카드, S-현금영수증, C-현금
- if(rdo_cashcardflag.value == "R"){
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"00"); //00-개인, 01-법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,"");
- model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"S");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"");
-
- cmb_qualcnfmflag.disabled = true;
- ipt_cardno.disabled = false;
- ipt_valiterm.disabled = false;
- ipt_allotmm.disabled = false;
- }else if(rdo_cashcardflag.value == "S"){
- var cmpyno = model.getValue("/root/main/cmpylst/item[" + grd_cmpylst.row + "]/cmpyno");
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"01"); //00-개인, 01-법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,cmpyno);
- model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"4");
-
- cmb_qualcnfmflag.disabled = false;
- ipt_cardno.disabled = false;
- ipt_valiterm.disabled = true;
- ipt_allotmm.disabled = true;
-
- }else if(rdo_cashcardflag.value == "C"){
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"00"); //00-개인, 01-법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,"");
- model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"");
- cmb_qualcnfmflag.disabled = true;
- ipt_cardno.disabled = true;
- ipt_valiterm.disabled = true;
- ipt_allotmm.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_indyn" ref="/root/send/cardcashdata/aprv/indinstflag" appearance="full" cols="3" overflow="visible" style="left:523px; top:34px; width:87px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>개인</label>
- <value>00</value>
- </item>
- <item>
- <label>법인</label>
- <value>01</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_allotmm" ref="/root/send/cardcashdata/aprv/allotmm" navindex="12" maxlength="2" style="left:1125px; top:32px; width:34px; height:19px; "/>
- <input id="ipt_valiterm" ref="/root/send/cardcashdata/aprv/valiterm" navindex="11" maxlength="4" style="left:1016px; top:32px; width:49px; height:19px; "/>
- <button id="button8" class="btn2_letter5" style="left:615px; top:32px; width:75px; height:19px; ">
- <caption>국세청코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "S"); //현금영수증
- rdo_cashcardflag.dispatch("xforms-value-changed");
- model.setValue("/root/send/cardcashdata/aprv/indinstflag" , "01"); //법인
- model.setValue("/root/send/cardcashdata/aprv/cardcashno" , "0100001234"); //차후 공통코드에 내용으로 대체
- model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "K");
- model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "4"); //사업자번호
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:215px; top:55px; width:85px; height:19px; text-align:center; vertical-align:middle; ">자격확인구분</caption>
- <select1 id="cmb_qualcnfmflag" ref="/root/send/cardcashdata/aprv/qualcnfmflag" appearance="minimal" style="left:302px; top:54px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/P0073">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="cell_1" style="left:0px; top:55px; width:85px; height:19px; text-align:center; vertical-align:middle; ">입력구분</caption>
- <select1 id="radio2" ref="/root/send/cardcashdata/aprv/keyinptflag" navindex="16" appearance="full" cellspacing="7" cols="2" overflow="visible" style="left:88px; top:54px; width:122px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Swipe</label>
- <value>S</value>
- </item>
- <item>
- <label>Key in</label>
- <value>K</value>
- </item>
- </choices>
- </select1>
- <line id="line16" class="line_3" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|